package com.wans.guli.common.exception.em;

import lombok.AllArgsConstructor;
import lombok.Getter;

@AllArgsConstructor
@Getter
public enum ExceptionInfoEnum {

    UNKNOWN_EXCEPTION(10000, "未知异常"),
    BIND_EXCEPTION(10001, "实体类绑定错误"),
    VALID_EXCEPTION(10002, "参数格式错误"),
    USER_EXIST_EXCEPTION(500, "用户已存在"),
    USER_NOT_EXIST_EXCEPTION(500, "用户不存在"),
    USER_PASSWORD_WRONG_EXCEPTION(500, "密码错误"),
    TOKEN_EXCEPTION(500, "token错误"),
    NOT_LOGIN_EXCEPTION(500, "请先登录");

    private final int code;
    private final String msg;
}
